package com.jumper.study.admin.dto.resp;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.List;

public class RoleResp {
    private Integer id;

    private String title;

    private List<Integer> menus;

    private LocalDateTime createdAt;

    public RoleResp() {
    }

    public RoleResp(Integer id, String title, List<Integer> menus, LocalDateTime createdAt) {
        this.id = id;
        this.title = title;
        this.menus = menus;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<Integer> getMenus() {
        return menus;
    }

    public void setMenus(List<Integer> menus) {
        this.menus = menus;
    }

    public Long getCreatedAt() {
        return createdAt.toEpochSecond(ZoneOffset.UTC);
    }

    public void setCreatedAt(LocalDateTime d) {
        createdAt = d;
    }
}
